package IteratorAndComposite.composite.interfaces;

import java.util.Iterator;

/**
 * @Author: pengzx
 * @Description:
 * @Date: 16:50 2017/9/22
 * @Modified by: 1.0
 */
public abstract class MenuComponent {

    public void add(MenuComponent menuComponent){
        throw new UnsupportedOperationException();
    }

    public void remove(MenuComponent menuComponent){
        throw new UnsupportedOperationException();
    }

    public MenuComponent getChild(int i){
        throw new UnsupportedOperationException();
    }

    public String getName()
    {
        throw new UnsupportedOperationException();
    }

    public String getDestription()
    {
        throw new UnsupportedOperationException();
    }

    public boolean isVegetarian()
    {
        throw new UnsupportedOperationException();
    }

    public double getPrice()
    {
        throw new UnsupportedOperationException();
    }

    public void print(){
        throw new UnsupportedOperationException();
    }

    public Iterator createIterator(){
        throw new UnsupportedOperationException();
    }
}
